package com.teamup;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import junit.framework.Assert;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import java.io.IOException;
import java.util.Date;

import android.os.AsyncTask;
import android.content.Context;

import com.teamup.bean.Evento;
import com.teamup.HomeFragment;
import com.teamup.ListaParticipantesFragment;
import com.teamup.Preferencias;
import com.teamup.R;

/*  Fragment para seccion perfil */ 
public class HomeFragment extends Fragment {
     
    public HomeFragment(){}
     
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
  
        View rootView = inflater.inflate(R.layout.home, container, false);
          
        return rootView;
    }
    
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case R.id.menu_settings:
			accionPreferencias(null);
			break;
		}
		return true;
		/** true -> consumimos el item, no se propaga */
	}
    
	
	public void accionPreferencias(View view) {
		Intent intent = new Intent(getActivity(), Preferencias.class);
		startActivity(intent);
	}
    
}